import { axios } from '@/utils/request'

/**
 * 查询图片
 *
 * @author Johnnie Wind
 * @date 2021-10-06 21:35:45
 */
export function photoPage (parameter) {
  return axios({
    url: '/photo/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 图片列表
 *
 * @author Johnnie Wind
 * @date 2021-10-06 21:35:45
 */
export function photoList (parameter) {
  return axios({
    url: '/photo/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加图片
 *
 * @author Johnnie Wind
 * @date 2021-10-06 21:35:45
 */
export function photoAdd (parameter) {
  return axios({
    url: '/photo/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑图片
 *
 * @author Johnnie Wind
 * @date 2021-10-06 21:35:45
 */
export function photoEdit (parameter) {
  return axios({
    url: '/photo/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除图片
 *
 * @author Johnnie Wind
 * @date 2021-10-06 21:35:45
 */
export function photoDelete (parameter) {
  return axios({
    url: '/photo/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出图片
 *
 * @author Johnnie Wind
 * @date 2021-10-06 21:35:45
 */
export function photoExport (parameter) {
  return axios({
    url: '/photo/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
